<html>
<head><meta charset="utf-8"><title>How to run debuginfo tests? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html">How to run debuginfo tests?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213765507"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213765507" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213765507">(Oct 19 2020 at 10:17)</a>:</h4>
<p>They're all ignored and it doesn't say why:</p>
<div class="codehilite"><pre><span></span><code>rust  master $ ./x.py test src/test/debuginfo
Updating only changed submodules
Submodules updated in 0.02 seconds
    Finished dev [unoptimized + debuginfo] target(s) in 0.08s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.08s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.12s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.08s
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 tool compiletest (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.08s
Check compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)

running 116 tests
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 100/116
iiiiiiiiiiiiiii.
test result: ok. 1 passed; 0 failed; 115 ignored; 0 measured; 0 filtered out

        finished in 0.328
Build completed successfully in 0:00:00
</code></pre></div>



<a name="213775927"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213775927" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213775927">(Oct 19 2020 at 12:14)</a>:</h4>
<p>Do they say <code>// ignore-stage-1</code> at the top?</p>



<a name="213775936"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213775936" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213775936">(Oct 19 2020 at 12:14)</a>:</h4>
<p>If so you need --stage 2</p>



<a name="213776040"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213776040" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213776040">(Oct 19 2020 at 12:15)</a>:</h4>
<p>This is basically the same bug as <a href="https://github.com/rust-lang/rust/issues/75905">https://github.com/rust-lang/rust/issues/75905</a> if so</p>



<a name="213777334"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213777334" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213777334">(Oct 19 2020 at 12:28)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/How.20to.20run.20debuginfo.20tests.3F/near/213775927">said</a>:</p>
<blockquote>
<p>Do they say <code>// ignore-stage-1</code> at the top?</p>
</blockquote>
<p>I don't think so.. at least I don't see it.</p>



<a name="213777356"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213777356" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213777356">(Oct 19 2020 at 12:29)</a>:</h4>
<p>Example: <a href="https://github.com/rust-lang/rust/blob/master/src/test/debuginfo/associated-types.rs">https://github.com/rust-lang/rust/blob/master/src/test/debuginfo/associated-types.rs</a></p>



<a name="213777453"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213777453" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213777453">(Oct 19 2020 at 12:30)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/blob/cb2462c53f2cc3f140c0f1ea0976261cab968a34/src/test/debuginfo/associated-types.rs#L3">https://github.com/rust-lang/rust/blob/cb2462c53f2cc3f140c0f1ea0976261cab968a34/src/test/debuginfo/associated-types.rs#L3</a></p>
<p>They need an lldb version compiled together with rust's LLVM.</p>



<a name="213777577"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213777577" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213777577">(Oct 19 2020 at 12:31)</a>:</h4>
<p>Hmm so the reason why they're skipped is I have <code>llvm-config</code> specified in my config.toml?</p>



<a name="213777650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213777650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213777650">(Oct 19 2020 at 12:31)</a>:</h4>
<p>Probably</p>



<a name="213777683"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213777683" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213777683">(Oct 19 2020 at 12:31)</a>:</h4>
<p>How am I supposed to debug this? The test runner gives no hint</p>



<a name="213777801"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213777801" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213777801">(Oct 19 2020 at 12:32)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/blob/ef663a8a48ea6b98b43cbfaefd99316b36b16825/src/tools/compiletest/src/header.rs#L196">https://github.com/rust-lang/rust/blob/ef663a8a48ea6b98b43cbfaefd99316b36b16825/src/tools/compiletest/src/header.rs#L196</a></p>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="k">fn</span> <span class="nf">ignore_lldb</span><span class="p">(</span><span class="n">config</span>: <span class="kp">&amp;</span><span class="nc">Config</span><span class="p">,</span><span class="w"> </span><span class="n">line</span>: <span class="kp">&amp;</span><span class="kt">str</span><span class="p">)</span><span class="w"> </span>-&gt; <span class="kt">bool</span> <span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="c1">// ...</span>
<span class="w">    </span><span class="n">line</span><span class="p">.</span><span class="n">starts_with</span><span class="p">(</span><span class="s">"rust-lldb"</span><span class="p">)</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="o">!</span><span class="n">config</span><span class="p">.</span><span class="n">lldb_native_rust</span><span class="w"></span>
<span class="w">    </span><span class="c1">// ...</span>
<span class="p">}</span><span class="w"></span>
</code></pre></div>



<a name="213780047"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20run%20debuginfo%20tests%3F/near/213780047" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> osa1 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20run.20debuginfo.20tests.3F.html#213780047">(Oct 19 2020 at 12:53)</a>:</h4>
<p>I removed <code>llvm-config</code> in my config.toml but some of the tests are still ignored:</p>
<div class="codehilite"><pre><span></span><code>Check compiletest suite=debuginfo mode=debuginfo (x86_64-unknown-linux-gnu -&gt; x86_64-unknown-linux-gnu)

running 116 tests
iiiiiiii..i..i.i.i...i..i.ii....i.i.....ii.........iiii.........i.....i...i.......ii.i.ii.....iiii.. 100/116
...ii...........
test result: ok. 78 passed; 0 failed; 38 ignored; 0 measured; 0 filtered out
</code></pre></div>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>